home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / program / vol16n13.zip / OPENTR.ZIP / OT_SRC.ZIP / OTDOC.H < prev    next >
C/C++ Source or Header  |  1997-05-26  |  2KB  |  57 lines

  1. // OTDoc.h : interface of the COpenTrapDoc class
  2. //
  3. // OpenTrap Version 1.00 by Gregory A. Wolking
  4. // Copyright ⌐ 1997 Ziff-Davis Publishing
  5. // First published in PC Magazine, US Edition, July 1997.
  6. /////////////////////////////////////////////////////////////////////////////
  7.  
  8. class COpenTrapDoc : public CDocument
  9. {
  10. protected: // create from serialization only
  11.     COpenTrapDoc();
  12.     DECLARE_DYNCREATE(COpenTrapDoc)
  13.  
  14. // Attributes
  15. public:
  16.     int m_intCurPage;
  17.     void SetFilterFlag(void);
  18.  
  19. // Operations
  20. public:
  21.     BOOL Filter_Record(void* p);
  22.     void Fix_Pointers(DWORD count);
  23.     void Write_Text_Log(CString file_name);
  24.     void Packed_to_ASCII(int rec_num, struct packed_record* p, char *b);
  25. // Overrides
  26.     // ClassWizard generated virtual function overrides
  27.     //{{AFX_VIRTUAL(COpenTrapDoc)
  28.     public:
  29.     virtual BOOL OnNewDocument();
  30.     virtual void Serialize(CArchive& ar);
  31.     virtual BOOL OnOpenDocument(LPCTSTR lpszPathName);
  32.     virtual BOOL OnSaveDocument(LPCTSTR lpszPathName);
  33.     //}}AFX_VIRTUAL
  34.  
  35. // Implementation
  36. public:
  37.     virtual ~COpenTrapDoc();
  38. #ifdef _DEBUG
  39.     virtual void AssertValid() const;
  40.     virtual void Dump(CDumpContext& dc) const;
  41. #endif
  42.  
  43. protected:
  44.  
  45. // Generated message map functions
  46. protected:
  47.     //{{AFX_MSG(COpenTrapDoc)
  48.     //}}AFX_MSG
  49.     DECLARE_MESSAGE_MAP()
  50. private:
  51.     BOOL m_bIsExporting;
  52.     BOOL Wildcard_Compare(char *buffer, BOOL which);
  53.     BOOL Check_Buffer_Size(DWORD data_size);
  54. };
  55.  
  56. /////////////////////////////////////////////////////////////////////////////
  57.